﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VTS.DAL;
using VTS.Common;

namespace VTS.BLL
{
    public class QuanTriBLL
    {
        /// <summary>
        /// check account and password are ok
        /// </summary>
        /// <param name="account"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        public bool CheckLogin(string account, string password)
        {
            QuanTriDAL dalQuanTri = new QuanTriDAL();
            string myPasswd = dalQuanTri.GetPasswordByAccount(account);

            return string.IsNullOrEmpty(myPasswd) ? false : Utility.CompareString(myPasswd, password);
        }
    }
}
